﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Events : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LblTime.Text = DateTime.Now.ToString();
        Page.Title = "Events";
        Response.Write("Page was loaded <br>");
    }

    protected override void OnPreInit(EventArgs e)
    {
        Response.Write("Page was Pre Initilised <br>");
        base.OnPreInit(e);
    }

    protected override void OnInit(EventArgs e)
    {
        Response.Write("Page was Initialised <br>");
        
        base.OnInit(e);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("Button Was clicked <br>");
    }

    protected override void OnPreRender(EventArgs e)
    {
        Response.Write("Page Pre render called <br>");
    
        base.OnPreRender(e);
    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
        Response.Write("TextChanged Event fired with " + TextBox1.Text + "<br>");
    }

    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {
        Response.Write("Checkbox was checked=" + CheckBox1.Checked.ToString() + "<br>");
    }
    protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
    {
        Response.Write("Radio button was Checked="+ RadioButton1.Checked.ToString() + "<br>");
    }
    protected void Button1_Load(object sender, EventArgs e)
    {
        Response.Write("Button was loaded"+"<br>");
    }

   
}
